from PIL import Image
file = 'man1.jpg'
img = Image.open(file)
print(f'img info format:{img.format} size:{img.size} mode:{img.mode}')
img.show()